//package com.platform.qujia.utils.tonglianpay.tlfusclasspay.support;
//
//import com.platform.qujia.utils.tonglianpay.tlfusclasspay.constant.CommonConstants;
//import com.platform.qujia.utils.tonglianpay.tlfusclasspay.struct.Request;
//import com.platform.qujia.utils.tonglianpay.tlfusclasspay.util.HttpUtils;
//import java.io.IOException;
//import java.util.Date;
//import org.apache.commons.lang3.time.DateFormatUtils;
//
///**
// * @author zzq
// * @version 1.0.0
// * @Title {@link}
// * @Description
// * @date 2020/5/27
// */
//public class HttpClient {
//
//    public static <T> String post(String service, T body) throws IOException {
//        Request<T> request = new Request<>();
//        request.setAppId(CommonConstants.APP_ID);
//        request.setCharset(CommonConstants.DEFAULT_CHARSET);
//        request.setSignType(CommonConstants.DEFAULT_SIGN_TYPE);
//        request.setVersion(CommonConstants.DEFAULT_VERSION);
//        request.setTimestamp(DateFormatUtils.format(new Date(), "yyyyMMddHHmmss"));
//        request.setService(service);
//        request.setBizContent(body);
//
//        request.sign(CommonConstants.APP_KEY);
//
//        String result = HttpUtils.post(CommonConstants.URL, request.toMap());
//
//        request.verify(result);
//        return result;
//    }
//
//}
